enum Level{
  debug,
  info,
  error
}

class LogEvent{
  final Level level;
  final dynamic message;
  final dynamic error;
  final StackTrace? stackTrace;
  final DateTime time;


  LogEvent(this.level, this.message, this.error, this.stackTrace): time = DateTime.now();
}

class OutputEvent{
  final Level level;
  final List<String> lines;

  OutputEvent(this.level, this.lines);
}